package com.mingtai.design.principle.demeter;

import java.util.ArrayList;
import java.util.List;

/**
 * @author: tianmingtai
 * @create: 2020/12/09 20:26
 * @description: 查询课程数量
 */

public class TeamLeader {
    public void checkNumberOfCource() {
        List<Course> list = new ArrayList<Course>();
        for (int i = 0; i < 20; i++) {
            list.add(new Course());
        }
        System.out.println("在线课程数量" + list.size());
    }
}
